package com.example.hrms.entity;

import java.sql.Timestamp;

public class PersonnelMatterInfo {
    private int PMid;
    private int Uid;
    private String Name;
    private String Join_time;//为了避免Ajax获取的时候出现时间的失真就用String 代替timestamp
    private String Department;
    private String Position;
    private int Salary;
    private int Is_regular;

    public PersonnelMatterInfo() {
    }

    public PersonnelMatterInfo(int uid, String name, String join_time, String department, String position, int salary, int is_regular) {
        Uid = uid;
        Name = name;
        Join_time = join_time;
        Department = department;
        Position = position;
        Salary = salary;
        Is_regular = is_regular;
    }

    @Override
    public String toString() {
        return "PersonnelMatterInfo{" +
                "PMid=" + PMid +
                ", Uid=" + Uid +
                ", Name='" + Name + '\'' +
                ", Join_time=" + Join_time +
                ", Department='" + Department + '\'' +
                ", Position='" + Position + '\'' +
                ", Salary=" + Salary +
                ", Is_regular=" + Is_regular +
                '}';
    }

    public int getPMid() {
        return PMid;
    }

    public void setPMid(int PMid) {
        this.PMid = PMid;
    }

    public int getUid() {
        return Uid;
    }

    public void setUid(int uid) {
        Uid = uid;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getJoin_time() {
        return Join_time;
    }

    public void setJoin_time(String join_time) {
        Join_time = join_time;
    }

    public String getDepartment() {
        return Department;
    }

    public void setDepartment(String department) {
        Department = department;
    }

    public String getPosition() {
        return Position;
    }

    public void setPosition(String position) {
        Position = position;
    }

    public int getSalary() {
        return Salary;
    }

    public void setSalary(int salary) {
        Salary = salary;
    }

    public int getIs_regular() {
        return Is_regular;
    }

    public void setIs_regular(int is_regular) {
        Is_regular = is_regular;
    }
}
